package com.ayh.campusfun.dao;

import com.ayh.campusfun.common.dao.BaseDao;
import com.ayh.campusfun.entity.Message;
import com.ayh.campusfun.vo.MessageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 消息表(Message)表数据库访问层
 *
 * @author ayh
 * @since 2021-03-19 18:20:08
 */
@Mapper
public interface MessageDao extends BaseDao<Message> {
    List<MessageVo> findUnreadMessageFriendId(String uid);

    List<Message> findMessageByFriendUid(Map<String, Object> map);

    Long updateMessageStatus(@Param("uid") String uid,@Param("friendUid") String friendUid);
}

